module.exports = {
  webpack:(config)=>{
    config.output.library = 'react';
    config.output.libraryTarget = 'umd';
    return config;
  },
  devServer:(configFunction)=>{
    return function (proxy,allowedHost){
      const config = configFunction(proxy,allowedHost);
      config.headers = {
        "Access-Control-Allow-Origin":'*'
      }
      return config
    }
  }
}